//package com.example.mychat.Utils;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//
//@Configuration
//public class RabbitMQConfig {
//    @Bean
//    public Queue myQueue() {
//        return new Queue("my-queue");
//    }
//    @Bean
//    public TopicExchange myExchange() {
//        return new TopicExchange("my-exchange");
//    }
//    @Bean
//    public Binding binding(Queue myQueue, TopicExchange myExchange) {
//        return BindingBuilder.bind(myQueue).to(myExchange).with("routing.key");
//    }
//
//}
